package com.wanmait.translate.system.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.wanmait.translate.pojo.SystemUser;
import com.wanmait.translate.system.mapper.SystemUserMapper;
import com.wanmait.translate.system.service.SystemUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SystemUserServiceImpl implements SystemUserService {
    @Resource
    private SystemUserMapper systemUserMapper;
    /*
     * @Author huweibin
     * @Description 根据工号准确查找，根据姓名模糊查找
     * @Date 18:17 2020/11/14
     **/
    public PageInfo<SystemUser> listByCondition(Integer pageNumber,Integer pageSize,SystemUser systemUser) {
        PageHelper.startPage(pageNumber,pageSize);
        List<SystemUser> list=systemUserMapper.listByCondition(systemUser);
        return new PageInfo<SystemUser>(list);
    }

}
